From c43859bfdd6871006cb8c15342bb7526531ab8f0 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 3 Apr 2003 17:27:38 +0000 Subject: [PATCH] Fix shortname generation. --- gpsbabel/csv_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index 1da64e47b..aefebd80a 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -590,7 +590,8 @@ xcsv_waypt_pr(const waypoint *wpt) if ((anyname) && (global_opts.synthesize_shortnames)) { char *oldname = anyname; - anyname = mkshort(xcsv_file.mkshort_handle, oldname); + anyname = mkshort(xcsv_file.mkshort_handle, + wpt->notes ? wpt->notes : wpt->description); xfree(oldname); } -- 2.30.2